package com.topisv.tms.rest.qimen.command;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

import com.topisv.tms.exception.PaiUException;
import com.topisv.tms.rest.qimen.qmservice.InstorageBillCreateService;
import com.topisv.tms.rest.qimen.request.RequestMethodType;
import com.topisv.tms.rest.qimen.request.RequestParams;
import com.topisv.tms.rest.qimen.response.ResponseParams;
/**
 * 入库单
 * @author hwx
 *
 */
@Component
@Lazy(false)
public class InstorageBillCreateCommand implements IQMRequestCommand,
		InitializingBean {

	@Autowired
	private InstorageBillCreateService instorageBillCreateService;
	@Override
	public void afterPropertiesSet() throws Exception {
		QMRequestCommandContainer.getInstance().add(RequestMethodType.ENTRYORDER_CREATE.getType(), this);
	}

	@Override
	public ResponseParams execute(RequestParams params) throws PaiUException {
			return instorageBillCreateService.execute(params);
	}

	@Override
	public void executeBefore(ResponseParams qmResponse) throws PaiUException {
	}

}
